package logica;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="Obstaculo")
public class Obstaculo extends Objeto {
	
	private int tipo;
	private boolean impactable;
	private boolean rompible;

	public Obstaculo(){
		
	}
	
	public Obstaculo(int id, float x, float y, float alt, float anch, int tipo, boolean imp, boolean rompible) {
		super(id, x, y, alt, anch);
		this.tipo = tipo;
		this.impactable = imp;
		this.rompible = rompible;
	}

	public int getTipo() {
		return tipo;
	}

	public void setTipo(int tipo) {
		this.tipo = tipo;
	}

	public boolean isImpactable() {
		return impactable;
	}

	public void setImpactable(boolean impactable) {
		this.impactable = impactable;
	}

	public boolean getRompible() {
		return rompible;
	}

	public void setRompible(boolean rompible) {
		this.rompible = rompible;
	}

}
